<template>
  <h1>父组件</h1>
  <h2>父组件money：{{ money }}</h2>
  <hr />
  <Son />
</template>

<script setup lang="ts">
import { provide, ref } from 'vue'
import Son from './components/Son.vue'

const money = ref(10000)
const car = ref('小黄车')
// provide('key', value) 提供数据
provide('money', money)
provide('car', car)
</script>
